﻿<!DOCTYPE html>
<!--
BeyondAdmin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.2.0
Version: 1.0.0
Purchase: http://wrapbootstrap.com
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8" />
    <title>后台管理</title>

    <meta name="description" content="Dashboard" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="shortcut icon" href="/admin/img/favicon.png" type="image/x-icon">


    <!--Basic Styles-->
    <link href="/admin/css/bootstrap.min.css" rel="stylesheet" />
    <link id="bootstrap-rtl-link" href="" rel="stylesheet" />
    <link href="/admin/css/font-awesome.min.css" rel="stylesheet" />
    <link href="/admin/css/weather-icons.min.css" rel="stylesheet" />
    <!--Beyond styles-->
    <link id="beyond-link" href="/admin/css/beyond.min.css" rel="stylesheet" type="text/css" />
    <link href="/admin/css/demo.min.css" rel="stylesheet" />
    <link href="/admin/css/typicons.min.css" rel="stylesheet" />
    <link href="/admin/css/animate.min.css" rel="stylesheet" />
    <link id="skin-link" href="" rel="stylesheet" type="text/css" />

    <link href="/admin/css/dataTables.bootstrap.css" rel="stylesheet" />
    <!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
    <script src="/admin/js/skins.min.js"></script>
</head>
<!-- /Head -->
<!-- Body -->
<body>
<!-- Loading Container -->
<div class="loading-container">
    <div class="loading-progress">
        <div class="rotator">
            <div class="rotator">
                <div class="rotator colored">
                    <div class="rotator">
                        <div class="rotator colored">
                            <div class="rotator colored"></div>
                            <div class="rotator"></div>
                        </div>
                        <div class="rotator colored"></div>
                    </div>
                    <div class="rotator"></div>
                </div>
                <div class="rotator"></div>
            </div>
            <div class="rotator"></div>
        </div>
        <div class="rotator"></div>
    </div>
</div>
<!--  /Loading Container -->
<!-- Navbar -->
@include('admin.navbar')
<!-- /Navbar -->
<!-- Main Container -->
<div class="main-container container-fluid">
    <!-- Page Container -->
    <div class="page-container">
        <!-- Page Sidebar -->
        <div class="page-sidebar" id="sidebar">
            <!-- Page Sidebar Header-->
            <div class="sidebar-header-wrapper">
                <input type="text" class="searchinput" />
                <i class="searchicon fa fa-search"></i>
                <div class="searchhelper">搜索功能暂未开放</div>
            </div>
            <!-- /Page Sidebar Header -->
            <!-- Sidebar Menu -->
        @include('admin.sidebar')
        <!-- /Sidebar Menu -->
        </div>
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="fa fa-home"></i>
                        <a href="{{urlAdmin('index','getIndex')}}">首页</a>
                    </li>
                </ul>
            </div>
            <div id="content">
            <!-- /Page Breadcrumb -->
            @include('admin.content1')
            </div>
        </div>
        <!-- /Page Content -->
    </div>
    <!-- /Page Container -->
    <!-- Main Container -->

</div>
{{--@include('admin.footer')--}}
{{--@yield('footer')--}}
<script src="/admin/js/jquery-2.0.3.min.js"></script>
<script src="/admin/js/bootstrap.min.js"></script>

<!--Beyond Scripts-->
<script src="/admin/js/beyond.min.js"></script>
<script src="/admin/js/validation/bootstrapValidator.js"></script>
<script src="/static/layer/layer.js"></script>
<script>
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    $(".sidebar-menu > li > a").click(function(){
        var topnav = $(this);
        var title = topnav.text();
        var url = topnav.attr('data');
        if (url != '#' && url != undefined && url != '') {
            var breadcrumb = $(".breadcrumb");
            var str = '<li><i class="fa fa-home"></i><a href="'+url+'">'+title+'</a></li>';
            breadcrumb.empty().append(str);
        }
    });
    $(".sidebar-menu > li > ul > li > a").click(function(){
        var title = $(this).find('span').text();
        var url = $(this).attr('data');
        var topnav = $(this).parent().parent().prev('a');
        var toptitle = topnav.find('span').text();
        var topurl = topnav.attr('href');
        var breadcrumb = $(".breadcrumb");
        var str = '<li><i class="fa fa-home"></i><a href="'+topurl+'">'+toptitle+'</a></li><li class="active">'+title+'</li>';
        breadcrumb.empty().append(str);
        if (url != '#' && url != undefined && url != '') {
            $("#content").load(url);
        }
    });
    function loadHtml(url, title){
        if (title != undefined) {
            var breadcrumb = $(".breadcrumb");
            breadcrumb.append('<li class="active">'+title+'</li>');
        }
        $("#content").load(url);
    }
    function search(self,url) {
        var value = self.val();
        var newUrl = url+'?keyword='+value;
        loadHtml(newUrl)
    }
</script>
</body>
<!--  /Body -->
</html>
